<include file="Public:pageheader" />
<script type="text/javascript">
function changevalue(value){
	$("#class2").empty();
	$("#class2").append('<option>--选择市--</option>');
	var slt=document.getElementById("class2");
	$.get('__URL__/selectcity',{rand:Math.random(),province_id:value},function(msg){
		msg = eval(msg);
				for(var i in msg){
					  
					   var objOption=document.createElement("OPTION");
					   objOption.value=msg[i].id;
					   objOption.text=msg[i].name;
					   slt.add(objOption);				
				}
				
		}
	);
	
}
function changevalue2(value){
	$("#class3").empty();
	$("#class3").append('<option>--选择区--</option>');
	var slt=document.getElementById("class3");
	$.get('__URL__/selectarea',{rand:Math.random(),city_id:value},function(msg){
		msg = eval(msg);
				for(var i in msg){
					  
					   var objOption=document.createElement("OPTION");
					   objOption.value=msg[i].id;
					   objOption.text=msg[i].name;
					   slt.add(objOption);				
				}
				
		}
	);
	
}
</script>
<div class="content-box">
	<div class="content-box-header">
	<h3>{$Think.lang.edit_conper}</h3>
	<div class="clear"></div>
	</div>

	<div class="content-box-content">
		<form action="__URL__/update" method="post">
			<fieldset>
			<p>
			<!--<label>*{%type}:</label>-->
			<input class="text-input small-input" type="hidden" name="type_id" value="1"/>
			</p>
			<p>
			<label>*{%name}：</label>
			<input class="text-input small-input" type="text" name="name" value="{$vo.name}"/>
			</p>
			<p>
			<label>*{%grade}：</label>
			<select name="grade">
				<option>--请选择--</option>
				<option selected="selected">普通</option>
				<option selected="selected">VIP</option>
			</select>
			</p>
			<p>
			<label>*{%sex}：</label>
			<input type="radio" value="1" name="sex" checked="checked"/>男<input type="radio" name="sex" value="0"/>女
			</p>
			<p>
			<label>*{%identity_id}：</label>
			<input class="text-input small-input" type="text" name="identity_id" value="{$vo.identity_id}"/>
			</p>
			<p>
			<label>*{%age}：</label>
			<input class="text-input small-input" type="text" name="age" value="{$vo.age}"/>
			</p>
			<p>
			<label>*{%address}:</label>
			<select name="province_id" id="class1" onchange="changevalue(this.value)">
				<option>--请选择--</option>
				<volist name="province" id="omit">
				<option value="{$omit.id}">{$omit.name}</option>
				</volist>
			</select>
			<select name="city_id" id="class2" onchange="changevalue2(this.value)">
			<option>--选择市--</option>

			</select>市
			<select name="area_id" id="class3">
			<option>--选择区--</option>
			</select>区
			<input class="text-input small-input" type="text" name="address" value="{$vo.address}"/>	
			</p>
			<p>
			<label>{%phone}:</label>
			<input class="text-input small-input" type="text" name="phone" value="{$vo.phone}"/>	
			</p>
			<p>
			<label>*{%telephone}：</label>
			<input class="text-input small-input" type="text" name="telephone" value="{$vo.telephone}"/>
			</p>
			<p>
			<label>*{%company}：</label>
			<input class="text-input small-input" type="text" name="company" value="{$vo.company}"/>
			</p>
			<p>
			<label>{%work}:</label>
			<input class="text-input small-input" type="text" name="job" value="{$vo.job}"/>
			</p>
			<p>
			<label>{%education}:</label>
			<input class="text-input small-input" type="text" name="education" value="{$vo.education}"/>
			</p>
			<p>
			<label>{%email}：</label>
			<input class="text-input small-input" type="text" name="email" value="{$vo.email}"/>
			</p>
			<p>
			<label>*{%fax}：</label>
			<input class="text-input small-input" type="text" name="fax" value="{$vo.fax}"/>
			</p>
			<p>
			<label>*{%other}：</label>
			<input class="text-input small-input" type="text" name="other" value="{$vo.other}"/>
			</p>
			<p>
			<label>*{%remark}：</label>
			<textarea name="remark">{$vo.remark}</textarea>
			</p>
			<p>
			</p>
			<p>
				<input type="hidden" value="{$vo.id}" name="id" />
				<input class="button" type="reset" value="{%reset}" />
				<input class="button" type="submit" value="{%update}" />
			</p>
			</fieldset>
		</form>
	</div>
</div>
<include file="Public:footer" />